#!/bin/bash
numberOfExecution=$1
input=$2
numberOfMachines=$3
optimizationApproach=$4
dataset=$5
config=$6
hardcodedplan=$7

javac ../src/*.java

./copy_code_to_all_machines.py $numberOfMachines $dataset

cd ../src/

for ((  i = 1 ;  i <= $numberOfExecution;  i++  ))
do
  /usr/bin/time -f "-----------Total execution time: %e" java ProcessInput $input $numberOfMachines $optimizationApproach $dataset $config $hardcodedplan
done
